#!/bin/env python

import sys

input = " ".join(sys.argv[1:])

try :
    #just for demo. It's very very DANGEROUS to use eval on user input 
    result = eval(input, {},{})
    print result
except:
    sys.stderr.write("Syntax Error: '%s'\n" % input)
    exit(-1)
